import axios from "axios";

const instance = axios.create({
  baseURL: "http://rap2api.taobao.org/app/mock/268280/",
});

export function getStatistical() {
  return instance({
    url: "/Statistical",
    method: "get",
  });
}

export function getMachine() {
  return instance({
    url: "/Machine",
    method: "get",
  });
}

export function getProducure() {
  return instance({
    url: "/Producure",
    method: "get",
  });
}

export function getState() {
  return instance({
    url: "/State",
    method: "get",
  });
}

export function getDefinition() {
  return instance({
    url: "/Definition",
    method: "get",
  });
}

export function getLinesdata() {
  return instance({
    url: "/LinesData",
    method: "get",
  });
}

export function getLeftTop() {
  return instance({
    url: "/LeftTop",
    method: "get",
  });
}

export function getLeftMiddle() {
  return instance({
    url: "/LeftMiddle",
    method: "get",
  });
}

export function getLeftBottom() {
  return instance({
    url: "/LeftBottom",
    method: "get",
  });
}
export function getLeftOne() {
  return instance({
    url: "/LeftOne",
    method: "get",
  });
}

export function getLeftTwo() {
  return instance({
    url: "/LeftTwo",
    method: "get",
  });
}

export function getMiddleTop() {
  return instance({
    url: "/MiddleTop",
    method: "get",
  });
}

export function getRunning() {
  return instance({
    url: "/running",
    method: "get",
  });
}
